home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / JFC.bin / ComboPopup.java < prev    next >
Text File  |  1998-06-30  |  3KB  |  78 lines

  1. /*
  2.  * @(#)ComboPopup.java    1.2 98/04/10
  3.  * 
  4.  * Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  */
  20.  
  21. package com.sun.java.swing.plaf.basic;
  22.  
  23. import java.awt.event.MouseListener;
  24. import java.awt.event.MouseMotionListener;
  25. import java.awt.event.KeyListener;
  26.  
  27.  
  28. /**
  29.  * The interface which defines the kind of popup menu that BasicComboBoxUI requires.
  30.  * Classes that implement this interface don't have to extend JPopupMenu.  This interface
  31.  * demands very little so alternatives to JPopupMenu can be used.
  32.  * <p>
  33.  * Warning: serialized objects of this class will not be compatible with
  34.  * future swing releases.  The current serialization support is appropriate 
  35.  * for short term storage or RMI between Swing1.0 applications.  It will
  36.  * not be possible to load serialized Swing1.0 objects with future releases
  37.  * of Swing.  The JDK1.2 release of Swing will be the compatibility
  38.  * baseline for the serialized form of Swing objects.
  39.  *
  40.  * @version 1.2 04/10/98
  41.  * @author Tom Santos
  42.  */
  43. public interface ComboPopup {
  44.     /**
  45.      * Shows and hides the popup.
  46.      */
  47.     //public void setVisible( boolean isVisible );
  48.  
  49.     public void show();
  50.     public void hide();
  51.  
  52.     /**
  53.      * Returns whether or not the popup is visible
  54.      */
  55.     public boolean isVisible();
  56.  
  57.     /**
  58.      * Returns a mouse listener that shows and hides the popup.
  59.      */
  60.     public MouseListener getMouseListener();
  61.  
  62.     /**
  63.      * Returns a mouse motion listener that makes the popup act like a menu.
  64.      */
  65.     public MouseMotionListener getMouseMotionListener();
  66.  
  67.     /**
  68.      * Returns a key listener that shows and hides the popup.
  69.      */
  70.     public KeyListener getKeyListener();
  71.  
  72.     /**
  73.      * Called to inform the ComboPopup that the UI is uninstalling.
  74.      * If the ComboPopup added any listeners in the component, it should remove them here.
  75.      */
  76.     public void uninstallingUI(); 
  77. }
  78.